package com.wxyzz.canteenadmin.vip.controller;


import com.wxyzz.canteenadmin.vip.entity.grade.vo.GradeListVO;
import com.wxyzz.canteenadmin.vip.service.IGradeService;
import com.wxyzz.canteencommon.common.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wyz
 * @since 2024-10-10
 */
@RestController
@RequestMapping("/grade")

public class GradeController {
    @Autowired
    private IGradeService gradeService;

    @RequestMapping("/listall")
    public R getListAll() {
        List<GradeListVO> gradeListVOList =  gradeService.getlistAll();
        return R.ok(gradeListVOList);
    }
}
